﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="electricityCO2Item">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="uid" type="xs:string" />
        <xs:element name="amount" type="xs:decimal" />
        <xs:element name="units" type="xs:string" />
        <xs:element name="startDateGMT" type="xs:dateTime" />
        <xs:element name="endDateGMT" type="xs:dateTime" />
        <xs:element name="hhRollingMean">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="value" type="xs:decimal" />
              <xs:element name="units" type="xs:string" />
              <xs:element name="startDateGMT" type="xs:dateTime" />
              <xs:element name="endDateGMT" type="xs:dateTime" />
              <xs:element name="hhSampleSize" type="xs:unsignedShort" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="officialStandard">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="value" type="xs:decimal" />
              <xs:element name="units" type="xs:string" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:sequence>
      <xs:attribute name="uri" type="xs:string" use="required" />
    </xs:complexType>
  </xs:element>
</xs:schema>